import React from "react";
import ReactDOM from "react-dom";
// react 组件必须首字母大写
import Hello from "@/componets/Hello";
// 参数
const dog = {
    name: "大黄",
    age: 3,
    gender: "雄",
};

ReactDOM.render( <
    div > { " " } { /* 直接把 组件的名称，以标签的形式放到页面中 */ } { " " } { /* <Hello name={dog.name} age={dog.age} gender={dog.gender}></Hello> */ } { " " } <
    Hello {...dog } > < /Hello>{" "} <
    /div>,
    document.getElementById("app")
);